package com.wnxy.sk.product.service;

import com.wnxy.sk.product.dto.OrderPayDto;
import com.wnxy.sk.product.entity.PromotionSeckill;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wnxy.sk.product.vo.PaymentVo;
import com.wnxy.sk.product.vo.PromotionOrderVo;
import com.wnxy.sk.product.vo.PromotionProductVo;

import java.util.List;

/**
 * <p>
 * 秒杀活动表 服务类
 * </p>
 *
 * @author Jet
 * @since 2022-10-11
 */
public interface IPromotionSeckillService extends IService<PromotionSeckill> {

    /**
     * 秒杀活动列表
     * @return
     */
    List<PromotionProductVo> findPromotionSeckill(int status);
    List<PromotionProductVo> findPromotionSeckill();

    /**
     * 根据秒杀活动id修改状态
     * @param promotionIds
     */
    void updateStatusByIds(List<Integer> promotionIds);

    PromotionOrderVo submitOrder(String userId, Integer promotionId);

    PaymentVo confirmOrder(OrderPayDto orderPayDto, String userId);

    Integer payOrder(OrderPayDto orderDto);
}
